<?php

//$host = 'https://caspay.sandpay.com.cn/agent-main/openapi';
//$merId = '11050857';
$host = PAY_HOST;
$merId = SAND_MID;

return array(
	'AgentPay' => array(
		'transCode' => 'RTPM', //实时代付
		'merId' => $merId,
		'url' => $host . '/agentpay',
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000004',
			'tranTime' => date('YmdHis', time()),
			'timeOut' => date('YmdHis', time() + 3600 * 12),
			'tranAmt' => str_pad($bank['amt'], 12, "0", STR_PAD_LEFT),
			'currencyCode' => '156',
			'accAttr' => '0',
			'accNo' => $bank['accntno'],
			'accType' => '4',
			'accName' => $bank['accntnm'],
			//'provNo' => 'sh',
			// 'cityNo' => 'sh',
			//'bankName' => 'cbc',
			//'bankType' => '1',
			'remark' => 'pay',
			"payMode" => "1", //付款模式   1-	商户预存款，默认      2-	在线支付账户    3-	银行卡账户(代扣模式，需另签协议)
			"channelType" => "07", //渠道类型  07：互联网08：移动端    表示商户业务使用场景，可默认填07
		)
	),
	'Collection' => array(
		'transCode' => 'RTCO', //实时代收
		'merId' => $merId,
		'url' => $host . '/collection',
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000002',
			'tranTime' => date('YmdHis', time()),
			'timeOut' => date('YmdHis', time() + 3600 * 12),
			'tranAmt' => str_pad($bank['amt'], 12, "0", STR_PAD_LEFT),
			'currencyCode' => '156',
			'accAttr' => '0',
			'accType' => '4',
			'accNo' => $bank['accntno'],
			'accName' => $bank['accname'],
			'bankName' => $bank['accntnm'],
			'provNo' => '010000',
			'cityNo' => '010000',
			'certType' => '0001',
			'certNo' => '321281198702253717',
			'cardId' => '321281198702253717',
			'phone' => '12345678901',
			'bankInsCode' => '48270000',
			'purpose' => 'collection',
			'channelType' => '07'
		)
	),
	'QueryOrder' => array(
		'transCode' => 'ODQU', //订单查询
		'merId' => $merId,
		'url' => $host . '/queryOrder',
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000003',
			'tranTime' => '此处填写原交易交易时间'
		)
	),
	'QueryBalance' => array(
		'transCode' => 'MBQU',
		'merId' => $merId,
		'url' => $host . '/queryBalance', //商户余额查询
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000003',
			'tranTime' => date('YmdHis', time())
		)
	),
	'QueryFee' => array(
		'transCode' => 'PTFQ', //代付手续费查询
		'merId' => $merId,
		'url' => $host . '/queryAgentpayFee',
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000003',
			'tranTime' => date('YmdHis', time()),
			'tranAmt' => str_pad($bank['amt'], 12, "0", STR_PAD_LEFT),
			'currencyCode' => '156',
			'accAttr' => '1',
			'accType' => '4',
			'accNo' => '5187180008861234'
		)
	),
	'RealNameVerify' => array(
		'transCode' => 'RNAU', //实名认证
		'merId' => $merId,
		'url' => $host . '/realNameVerify',
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000003',
			'tranTime' => date('YmdHis', time()),
			'accAttr' => '0',
			'accType' => '4',
			'accNo' => '6216261000000000018',
			'accName' => '汪中',
			'certType' => '0101',
			'certNo' => '350821198706134513',
			'phone' => '15970847045'
		)
	),
	'IdCardVerify' => array(
		'transCode' => 'RNPA', //实名公安认证
		'merId' => $merId,
		'url' => $host . '/idCardVerify',
		'pt' => array(
			'orderCode' => time() . time(),
			'version' => '01',
			'productId' => '00000003',
			'tranTime' => date('YmdHis', time()),
			'name' => '罗福',
			'certType' => '0001',
			'certNo' => '350424198806210053',
			'returnPic' => '1',
		)
	),
	'getClearFileContent' => array(
		'transCode' => 'CFCT', //对账单申请
		'merId' => $merId,
		'url' => $host . '/getClearFileContent',
		'pt' => array(
			'version' => '01',
			'clearDate' => '20170530',
			'busiType' => '1',
			'fileType' => '1'
		)
	),
);
